var mc_MzA5NDg = 'MzA5NDg'; var mc_num_MzA5NDg = '30948'; var w_MzA5NDg = '970'; var h_MzA5NDg = '90'; var ps_MzA5NDg = ''; var url_MzA5NDg = '%7BINSERT+PASSBACK+URL%7D'; var le_MzA5NDg = '50%'; var ri_MzA5NDg = ''; var to_MzA5NDg = ''; var bo_MzA5NDg = '10'; var tf_MzA5NDg = 'y'; var vs_MzA5NDg = '500'; //노출 시작 지점(스크롤 값) var vsf_MzA5NDg = ''; //노출 시작 후 사라지는 옵션 (0: 사라짐, 1:유지) var full_MzA5NDg = ''; //가로 100% 여부 var pos_MzA5NDg = (le_MzA5NDg) ? ((le_MzA5NDg.indexOf('%')!= -1)?'left:'+le_MzA5NDg+';':'left:'+le_MzA5NDg+'px;') : ''; pos_MzA5NDg = (ri_MzA5NDg) ? ((ri_MzA5NDg.indexOf('%')!= -1)?pos_MzA5NDg + 'right:'+ri_MzA5NDg+';':pos_MzA5NDg + 'right:'+ri_MzA5NDg+'px;') : pos_MzA5NDg; pos_MzA5NDg = (to_MzA5NDg) ? ((to_MzA5NDg.indexOf('%')!= -1)?pos_MzA5NDg + 'top:'+to_MzA5NDg+';':pos_MzA5NDg + 'top:'+to_MzA5NDg+'px;') : pos_MzA5NDg; pos_MzA5NDg = (bo_MzA5NDg) ? ((bo_MzA5NDg.indexOf('%')!= -1)?pos_MzA5NDg + 'bottom:'+bo_MzA5NDg+';':pos_MzA5NDg + 'bottom:'+bo_MzA5NDg+'px;') : pos_MzA5NDg; var tansform_MzA5NDg = (tf_MzA5NDg) ? "transform: translateX(-50%)":""; var body_MzA5NDg = top.document.body || window.parent.document.body; var dcamp_mv_div_MzA5NDg = document.createElement('div'); dcamp_mv_div_MzA5NDg.id = 'dcamp_ad_' + mc_num_MzA5NDg; dcamp_mv_div_MzA5NDg.setAttribute('style', 'display:flex; width:'+w_MzA5NDg+'px; position:fixed; z-index:9999999999;' + pos_MzA5NDg + tansform_MzA5NDg); body_MzA5NDg.appendChild(dcamp_mv_div_MzA5NDg); var isloaded_MzA5NDg = "N"; function loadscript_MzA5NDg(){ var dcamp_load_script_MzA5NDg = document.createElement('script'); if(full_MzA5NDg == "Y") dcamp_load_script_MzA5NDg.src = 'https://tracker.digitalcamp.co.kr/dcamp_load_V2.php?mc='+mc_MzA5NDg+'&t=script&bt=fl&w=100%&ps='+ps_MzA5NDg+'&url='+url_MzA5NDg; else dcamp_load_script_MzA5NDg.src = 'https://tracker.digitalcamp.co.kr/dcamp_load_V2.php?mc='+mc_MzA5NDg+'&t=script&bt=fl&w='+w_MzA5NDg+'&h='+h_MzA5NDg+'&ps='+ps_MzA5NDg+'&url='+url_MzA5NDg; body_MzA5NDg.appendChild(dcamp_load_script_MzA5NDg); isloaded_MzA5NDg = "Y"; } if(vs_MzA5NDg >= 0){ var globalEvents_MzA5NDg = {}; var scrolltop_MzA5NDg = 0; var dcamp_ad_id_MzA5NDg = document.getElementById('dcamp_ad_' + mc_num_MzA5NDg); dcamp_ad_id_MzA5NDg.style.opacity = "0"; dcamp_ad_id_MzA5NDg.style.visibility = "hidden"; //dcamp_ad_id_MzA5NDg.style.transform = "translate(0%, 100%)"; dcamp_ad_id_MzA5NDg.style.transition = "all 1s"; globalEvents_MzA5NDg.scrollToWindow = function () { scrolltop_MzA5NDg = document.documentElement.scrollTop; if(scrolltop_MzA5NDg <= vs_MzA5NDg ) { if(vsf_MzA5NDg != "1"){ dcamp_ad_id_MzA5NDg.style.opacity = "0"; dcamp_ad_id_MzA5NDg.style.visibility = "hidden"; } } else { if(isloaded_MzA5NDg == "N") loadscript_MzA5NDg(); dcamp_ad_id_MzA5NDg.style.opacity = "1"; dcamp_ad_id_MzA5NDg.style.visibility = "visible"; } } window.addEventListener("scroll", globalEvents_MzA5NDg.scrollToWindow ); } else { loadscript_MzA5NDg(); }